package org.x.user.dto;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 租户与数据源配置关联入参实体类
 *
 * @author 夏包包
 * @date 2025-03-08 13:39:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TenantDsDTO {

    /**
     * 租户ID
     */
    @NotBlank(groups = { CreateGroup.class, DeleteGroup.class }, message = "租户ID不能为空")
    @Schema(description = "租户ID")
    private String tenantId;

    /**
     * 数据源配置ID
     */
    @NotBlank(groups = { CreateGroup.class, DeleteGroup.class }, message = "数据源配置ID不能为空")
    @Schema(description = "数据源配置ID")
    private String dsConfigId;

    /**
     * 是否默认数据源
     */
    @Schema(description = "是否默认数据源")
    private Boolean isDefault;
}
